#include "apue.h"
#include "error.c"

int main(int argc, char const *argv[])
{
    if(argc != 2)
        err_quit("exec param error");

    char buf[4096];
    memset(buf, 0, sizeof(buf));
    ssize_t size;
    size = readlink(argv[1], buf, 4095);

    printf("value: %s\n", buf);
    return 0;
}